package com.example.hospitalsystem.exception;

import com.example.hospitalsystem.result.ResultCodeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务异常
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class HospitalSystemServiceException extends RuntimeException {

    private ResultCodeEnum resultCodeEnum;

    public HospitalSystemServiceException(ResultCodeEnum resultCodeEnum, String message) {
        super(message);
        setResultCodeEnum(resultCodeEnum);

    }

}
